Improve 'tab-line-tabs-fixed-window-buffers' sorting performance
authorEval EXEC <execvy@gmail.com>
Fri, 5 Jul 2024 10:53:36 +0000 (18:53 +0800)
committerJuri Linkov <juri@linkov.net>
Sun, 7 Jul 2024 18:23:33 +0000 (21:23 +0300)
commitfffab032b05d5dcb72d6729321739ca814c54a28
treea882f816e30d8e0c9796c5bb86fdb96efd22cb00
parent069fa6390973bde3a1c551369ed54d741f369703
Improve 'tab-line-tabs-fixed-window-buffers' sorting performance

* lsp/tab-line.el (tab-line-tabs-fixed-window-buffers): Enhance
'tab-line-tabs-fixed-window-buffers' performance by optimizing buffer
sorting mechanism.  Replace inefficient 'seq-position' calls with a hash
table to cache buffer positions, significantly improving speed when
handling large buffer lists (bug#71958).

Copyright-paperwork-exempt: yes
lisp/tab-line.el